package com.lin.chapter8.mul;

import com.lin.chapter8.Human;

public class NvWa {
	public static void main(String[] args) {
		System.out.println("--造出第一批人是白色人种--");
		Human whiteHuman = (new WhiteHumanFactory()).createHuman();
		whiteHuman.getColor();
		whiteHuman.talk();

		System.out.println("\n--造出的第二批人是黑色人种--");
		Human blackHuman = (new BlackHumanFactory()).createHuman();
		blackHuman.getColor();
		blackHuman.talk();

		System.out.println("\n--造出的第三批人是黄色人种--");
		Human yellowHuman = (new YellowHumanFactory()).createHuman();
		yellowHuman.getColor();
		yellowHuman.talk();

	}
}
